import req from "@/base/req.js";
const Api = {
	register: "app-users/register",
	verificationCodes: "verification-codes",
	login: "app-users/login"
};

export function appUserRegister(data){
	return req.post({
		url: Api.register,
		data
	},{
		withToken: false
	});
}

export function getVeriCode(data){
	return req.get({
		url: Api.verificationCodes,
		data
	},{
		useGlobalLoading: false,
		withToken: false
	});
}

export function doLogin(data){
	return req.post({
		url: Api.login,
		data
	},{
		withToken: false,
		useDefaultFailHandle: false
	});
}
